<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReportLabelsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_report_labels', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('case_id')->default(0)->comment('病例id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->string('label')->default(null)->comment('标签名称');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_report_labels');
    }
}
